bus/usb/ehci: Define GRUB_EHCI_TOGGLE as grub_uint32_t
authorAlec Brown <alec.r.brown@oracle.com>
Tue, 4 Feb 2025 15:11:10 +0000 (15:11 +0000)
committerFelix Zielcke <fzielcke@z-51.de>
Wed, 11 Jun 2025 15:42:34 +0000 (17:42 +0200)
commit7d208933e45fe6153d0815e0c86dec67fb7d5b2b
tree01934e12ebdeb72a330dde07f83aa371e27dd4e8
parentb608b3ae47a3282ab97db2515ede533f7b88166c
bus/usb/ehci: Define GRUB_EHCI_TOGGLE as grub_uint32_t

The Coverity indicates that GRUB_EHCI_TOGGLE is an int that contains
a negative value and we are using it for the variable token which is
grub_uint32_t. To remedy this we can cast the definition to grub_uint32_t.

Fixes: CID 473851
Signed-off-by: Alec Brown <alec.r.brown@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
Gbp-Pq: Topic cve-2025-jan
Gbp-Pq: Name bus-usb-ehci-Define-GRUB_EHCI_TOGGLE-as-grub_uint32_t.patch
grub-core/bus/usb/ehci.c